home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 273_01 / setmode.cc < prev    next >
Encoding:
C/C++ Source or Header  |  1987-09-26  |  214 b   |  10 lines

  1. #include <dos.h>
  2. set_mode(int mode)
  3. /* This will set the video mode to the mode passed */
  4. {
  5.         union REGS inregs;
  6.         inregs.h.ah=0x00;
  7.         inregs.h.al=mode;
  8.         int86(0x10,&inregs,&inregs);
  9. }
  10.